{extend name="layout/default" /}

{block name="content"}
<div class="con-left">
    <article id="article" class="article">
        <h1 class="title">{$detail->article_title}</h1>
        <div class="article-tool">
            <span>来源:<a href="{:url('/')}">{:cnpscy_config('site_web_title')}</a></span>
            {if !empty($detail->menu)}
                <span>
                    所属栏目:
                    <a href="{$detail->menu->menu_url}"> {$detail->menu->menu_name} </a>
                </span>
            {/if}
            {if !empty(count($detail->labels))}
                <span class="mutag">
                    文章标签：
                    {foreach $detail->labels as $label}
                        <a href="{:url('/label/' . $label->label_id)}">{$label->label_name}</a>
                    {/foreach}
                </span>
            {/if}
            <span>最后更新:{:date('Y-m-d H:i', $detail->updated_time)}</span>
            <span>浏览:{$detail->read_num}</span>
        </div>
        <div class="yuch">
            <div class="smtou"><span class="smtitle">版权声明：</span>
                <div class="smcon">本文为博主原创文章，转载请声明原文链接，万分感谢！(*￣︶￣)</div>
            </div>
            <div class="smtou">
                <span class="smtitle">原文链接:</span>
                <div class="smcon">
                    <?php $article_origin = $detail->article_origin ? $detail->article_origin : request()->url(true);?>
                    <a class="smlink" href="{$article_origin}">{$article_origin}</a>
                </div>
            </div>
            <div class="smtou"><span class="smtitle">更新时间：</span>
                <div class="smcon">{:date('Y-m-d H:i', $detail->updated_time)}</div>
            </div>
        </div>
        <!--文章内容 start-->
        <div id="content-editor" class="article-con" style="min-height: 60rem;">
            <textarea style="display:none;">
                {$detail->article_content}
            </textarea>
        </div>
        <!--文章内容 end-->
    </article>
</div>
{/block}

{block name="script-src"}
    {include file="layout:plugins/editormd" /}
{/block}